﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 产品扩展属性
	/// </summary>
	public class DbProductsEx
	{ 
		#region DbProductsEx
		/// <summary>
		/// 
		/// </summary>
		public DbProductsEx()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbProductsEx(Int32 peId)
		{
			this.peId = peId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbProductsEx(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["peId"]),out peId);
			this.peProdCode = Convert.ToString(dr["peProdCode"]);
			this.peType = Convert.ToInt16(dr["peType"]);
			this.peName = Convert.ToString(dr["peName"]);
			this.peValue = Convert.ToString(dr["peValue"]);
			int.TryParse(Convert.ToString(dr["peOrder"]),out peOrder);
			this.peValue0 = Convert.ToString(dr["peValue0"]);
			this.peValue1 = Convert.ToString(dr["peValue1"]);
			this.peLang = Convert.ToString(dr["peLang"]);
			this.peEnName = Convert.ToString(dr["peEnName"]);
			
		}
		#endregion
		
		
		#region PeId
		private Int32 peId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 PeId
		{
			get{ return peId; }
			set{ peId= value; }
		}
		#endregion
		
		#region PeProdCode
		private System.String peProdCode;
		/// <summary>	 
		/// 产品编号
		/// </summary>
		public System.String PeProdCode
		{
			get{ return peProdCode; }
			set{ peProdCode= value; }
		}
		#endregion
		
		#region PeType
		private Int16 peType;
		/// <summary>	 
		/// 属性类型
		/// 1-图片 0-属性参数
		/// </summary>
		public Int16 PeType
		{
			get{ return peType; }
			set{ peType= value; }
		}
		#endregion
		
		#region PeName
		private System.String peName;
		/// <summary>	 
		/// 属性名称
		/// </summary>
		public System.String PeName
		{
			get{ return peName; }
			set{ peName= value; }
		}
		#endregion
		
		#region PeValue
		private System.String peValue;
		/// <summary>	 
		/// 属性值
		/// </summary>
		public System.String PeValue
		{
			get{ return peValue; }
			set{ peValue= value; }
		}
		#endregion
		
		#region PeOrder
		private Int32 peOrder;
		/// <summary>	 
		/// 属性排序
		/// </summary>
		public Int32 PeOrder
		{
			get{ return peOrder; }
			set{ peOrder= value; }
		}
		#endregion
		
		#region PeValue0
		private System.String peValue0;
		/// <summary>	 
		/// 放大图
		/// </summary>
		public System.String PeValue0
		{
			get{ return peValue0; }
			set{ peValue0= value; }
		}
		#endregion
		
		#region PeValue1
		private System.String peValue1;
		/// <summary>	 
		/// 略图
		/// 只有当是力图时才有效
		/// </summary>
		public System.String PeValue1
		{
			get{ return peValue1; }
			set{ peValue1= value; }
		}
		#endregion
		
		#region PeLang
		private System.String peLang;
		/// <summary>	 
		/// 语言选择
		/// </summary>
		public System.String PeLang
		{
			get{ return peLang; }
			set{ peLang= value; }
		}
		#endregion
		
		#region PeEnName
		private System.String peEnName;
		/// <summary>	 
		/// 属性英文名称
		/// 只有当图片时有用
		/// </summary>
		public System.String PeEnName
		{
			get{ return peEnName; }
			set{ peEnName= value; }
		}
		#endregion

	}
}
